package com.scau.hwadee.examination.mapper;

import com.scau.hwadee.examination.entity.Majorclass;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 *@author YHX
 *@date 2019/7/29  9:01
 *@description
 */
public interface MajorclassMapper {
    int deleteByPrimaryKey(String mcName);

    int insert(Majorclass record);

    int insertSelective(Majorclass record);

    Majorclass selectByPrimaryKey(String mcName);

    int updateByPrimaryKeySelective(Majorclass record);

    int updateMajorClass(@Param("beforeName") String beforeName,
                         @Param("afterId") String afterId,
                         @Param("afterName") String afterName);

    int updateByPrimaryKey(Majorclass record);

    List<Majorclass> listAllMajorClass(@Param("pageNum")int pageNum,
                                       @Param("pageSize")int pageSize);

}